package com.jandan.web.admin;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
import org.springframework.web.servlet.view.RedirectView;

/**
 * @author Gong Yong
 * @version 1.0
 */
public class SignoffController implements Controller {

	public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
		request.getSession().removeAttribute("adminSession");
		request.getSession().invalidate();
		return new ModelAndView(new RedirectView("login.htm"));
	}
}
